numbers = input().split()
numbers.sort()
encoded = []
current = ''
count = 0
for i in numbers:
  if i == current:
    if i not in encoded:
      encoded.append(current)
      count += 1
  else:
    current = i
for i in encoded:
    print(i, end=' ')